package org.chengn.level_easy.context2828;

import java.util.List;

/**
 * @Title: Context2828
 * @Author ChengN
 * @Package org.chengn.level_easy.context2828
 * @Date 2023/12/20 0:07
 * @description: 判断首字母缩略词
 */
public class Context2828 {
    public boolean isAcronym(List<String> words, String s) {
        if (words.size() != s.length()) return false;
        int j = 0;
        for (int i = 0; i < words.size(); ++i) {
            if (words.get(i).charAt(0) != s.charAt(j++)) return false;
        }
        return true;
    }
}
